﻿@model List<BO.Account>

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>PostInspection</title>
</head>
<body>
    <div>
        @foreach (var a in Model)
        {
            <div class="Account">
                <div class="Title">@a.Name</div>
                <div class="Posts">
                    @if (a.Posts != null)
                    {
                        foreach (var p in a.Posts)
                        {
                            <div class="Post">
                                <img src="/Images/Sap/@(p.Icon).png" style="width:32px; margin:10px"/>
                                 @p.Text
                            </div>
                        }
                    }
                </div>
            </div>
        }

        @foreach (var a in ViewBag.Pages)
        {
            <div class="Account">
                <div class="Title">@a.Name</div>
                <div class="Posts">
                    @if (a.Posts != null)
                    {
                        foreach (var p in a.Posts)
                        {
                            <div class="Post">
                                <img src="/Images/Sap/@(p.Icon).png" style="width:32px; margin:10px"/>
                                 @p.Text
                            </div>
                        }
                    }
                </div>
            </div>
        }

    </div>
</body>
</html>
